package com.albaba.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zx
 * @version 1.0
 * @description TODO
 * @date 2024/11/5 19:14
 */
@RestController
@RequestMapping("/nacos")
public class DemoController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/mashibing")
    public String getServerPort() {
        return "Hello Nacos Discovery:" + serverPort;
    }

}
